const Router = require('@koa/router');
const fun = require('../controller/admin/basic_vendor.controller');
const config = require('../config');

const router = new Router({ prefix: `${config.ADMIN_PREFIX_V2}/basic_vendor` });
// 供应商管理
router.post('/create', fun.createVendor); // 创建供应商
router.post('/delete', fun.deleteVendors); // 删除供应商
router.post('/update', fun.updateVendor); // 更新供应商
router.get('/list', fun.getVendorList); // 查询供应商列表
router.post('/update-state', fun.updateVendorState); // 修改供应商状态
module.exports = router;
